var http = require('http');
var fs = require('fs');
var url = require('url');

var hostname = '127.0.0.1';
var port = '3000';

var server =http.createServer(function(req,res){
    if (req.url =='favicon.ico') {return};

    var res= url.parse(req.url);

    console.log(res);
    console.log(res.query);
    console.log(res.search);
    console.log(res.pathname);

    var queryobj = url.parse(req.url,true);
    console.log(queryobj);


});


server.listen(port,hostname);